pyspark group by and average in dataframes

39

df.groupBy("Profession").agg({'Age':'avg', 'Gender':'count'}).show()

Comments

Submit
0 Comments